/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

/**
 *
 * @author Администратор
 */
public class Factory {
  
  private static CrumbsUserDAO userDAO = null;
  private static Factory instance = null;

  public static synchronized Factory getInstance(){
    if (instance == null){
      instance = new Factory();
    }
    return instance;
  }

  public CrumbsUserDAO getCrumbsUserDAO(){
    if (userDAO == null){
      userDAO = new CrumbsUserDAOImpl();
    }
    return userDAO;
  }
}
